home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_gen
/
rawed1_1.zip
/
READ.ME
< prev
next >
Wrap
Text File
|
1996-06-08
|
5KB
|
140 lines
RAWEDIT v1.1 - Hexadecimal File Editor
Written by: Ken Martin
Just a few things about RAWEDIT:
1) It views/edits files in raw hexadecimal numbers/ASCII text.
RAWEDIT accomplishes this by splitting the screen into two sides:
the left for hexadecimal numbers, and the right for ASCII text.
2) You can go to any byte position in a file.
3) You can search for any hex- or ASCII- string in a file.
4) Use the TAB key to switch between editing hexadecimal and ASCII.
5) A file can be expanded or a portion saved as a different file.
5) There's a built-in scientific calculator
6) Hex to decimal to binary to ASCII conversion utility
5) RAWEDIT was written for and tested on DOS:
- Turbo C++ 1.0
- Watcom C++ 10.0
and Unix:
- IBM AIX
- HP HP-UX
- Sun Solaris
- Linux
6) All source for recompiling RAWEDIT with any of the abovementioned
compilers is included.
7) To run, simply type:
rawedit -r <filename>
... where:
-r = Switch to put RAWEDIT in read-only mode.
<filename> = The file to view and/or edit.
Example:
rawedit read.me
This will allow viewing and editing the read.me file in it's
raw hexadecimal/ASCII state.
rawedit -r rawedit.h
This allows viewing only of rawedit.h.
8) Filelist:
rawedit.exe Executable under DOS.
rawedit.aix Executable under IBM RS/6000 AIX.
rawedit.hpx Executable under HP 9000 HP-UX.
rawedit.sol Executable under Sun Sparc Solaris
rawedit.lin Executable under Linux
rawedit.c RAWEDIT main source code.
rawedit.h Determines which .io file to include
watcom10.io Input/Output driver for Watcom C++ compiler
tcc1.io Input/Output driver for Turbo C++ compiler
aix.io Input/Output driver for RS/6000 AIX compiler
hpux.io Input/Output driver for HP 9000 HP-UX compiler
solaris.io Input/Output driver for Sun Sparc Solaris
linux.io Input/Output driver for Linux
make_wat.bat Batch file for compiling using Watcom C
make_tcc.bat Batch file for compiling using Turbo C++
aix.mak Script for creating rawedit.aix under RS/6000 AIX
hpux.mak Script for creating rawedit.hpx under HP 9000 HP-UX
solaris.mak Script for creating rawedit.sol under Solaris
linux.mak Script for creating rawedit.lin under Linux
9) To recompile under Turbo C++/Watcom C++:
a) You may need to edit the MAKE_WAT or MAKE_TCC batch file to set
the correct path(s).
b) Run MAKE_WAT or MAKE_TCC.
10) To recompile under AIX, HP-UX, Solaris, or Linux:
a) Use the appropriate .mak file to recompile. You will probably
have to do a:
chmod a+x aix.mak
or
chmod a+x hpux.mak
or
chmod a+x solaris.mak
or
chmod a+x linux.mak
...in order to execute the .mak file as a shell script.
Also, since rawedit.c is writting in ANSI-C, an ANSI-C compiler
must be available on the Unix system. Some Unix systems have
only the K & R compiler. rawedit.c would have to be converted
back to the K & R style to recompile in this case.
11) With a minimum amount of effort, RAWEDIT could be ported to other
environments. Simply look at the existing .io files as examples
for the desired compiler/environment.
12) RAWEDIT.H has been changed to automatically include the correct
.io file if the proper macro-define is made at compile time.
13) One caveat: Adding the calculator meant including a math library.
While this is no problem under Unix, DOS compilers are notorious
for having proprietary ways of accomplishing this. I tried
practically every compile option on MSVC1.5's DOS compiler but
kept getting a link error regarding the math library. Because of
this, MSVC1.5 support has been dropped. Any daring soul can
copy the WATCOM10.io file to MSVC1_5.io and make porting modifications
as needed for the compile.
RAWEDIT is donated to the public domain in hopes it may help better
those in need of such a utility or even for those who like playing
with C code. No warranties nor guaranties are provided; the software is
donated AS IS.
I'd like to thank all those people who themselves donate source code
to the public domain. Their contributions inspired me to write RAWEDIT.
Ken Martin
June 8, 1996